﻿<%@ Page Language="C#" MasterPageFile="~/masterPage/front/basePage.master" AutoEventWireup="true" CodeFile="CategoryList.aspx.cs"
    Inherits="CategoryList" Title="网站声明---零件资源网" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="SalePartial" TagName="NewsCategory" Src="~/controls/common/NewsCategy.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <SalePartial:NewsCategory ID="NewsCategory1" runat="server" />
        <!--炻新闻-->
        <div id="newslist" class="commonfrm">
            <h4>新闻列表</h4>
            <div style="padding:5px;">
                查询新闻：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>  
                <asp:DropDownList ID="dptCategory" runat="server">
                </asp:DropDownList>
                <asp:Button ID="btnS" runat="server" Text="查询" onclick="btnS_Click" />
                </div>
            <table  border="0" cellpadding="0" cellspacing="0">
            <tr>
                <th class="tdclass"><asp:Label ID="lblCaName" runat="server" Text=""></asp:Label></th>
                <th class="tdtitle">新闻列表</th>
                <th>发布时间</th>
             </tr>
                <asp:Repeater ID="rptNewNews" runat="server">
                    <ItemTemplate>
                    <tr>
                        <td class="td_category"><a href='list.aspx?caid=<%#Eval("CaID")%>'><%#Eval("CaName")%></a></td>
                        <td class="td_title"><a href="newscontent.aspx?id=<%#Eval("NewsID")%>" title='<%#Eval("Title")%>' target="_blank"><%#SalePartial.Utility.Utils.StringTruncate(Eval("Content").ToString(), 20, "...")%></a></td>
                        <td><%#Eval("CreateDate", "{0:yyyy-MM-dd}")%></td>
                    </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <tr><td colspan="3">

                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server"  UrlPaging="True" 
                        FirstPageText="首页" LastPageText="尾页" NextPageText="后页" 
                        onpagechanged="AspNetPager1_PageChanged" PageSize="2" PrevPageText="前页" CssClass="anpager">
                    </webdiyer:AspNetPager>

                </td></tr>
            </table>
        </div>
        <!--热点新闻-->
        
</asp:Content>
